package cn.trasen.his.poc.std.api.model.major;

import pro.shushi.pamirs.boot.base.ux.annotation.field.UxWidget;
import pro.shushi.pamirs.boot.base.ux.annotation.view.UxForm;
import pro.shushi.pamirs.boot.base.ux.annotation.view.UxTableSearch;
import pro.shushi.pamirs.meta.annotation.Field;
import pro.shushi.pamirs.meta.annotation.Model;
import pro.shushi.pamirs.meta.base.common.CodeModel;

/**
 * @Description: 病区信息
 * @author: Jacob
 * @Date: 2024-12-6 13:47:02
 * @Company: 湖南创星科技股份有限公司
 */
@Model.model(WardInfo.MODEL_MODEL)
@Model(displayName = "病区信息", labelFields = {"name"})
@Model.Code(sequence = "SEQ", prefix = "W", size = 5, step = 1, initial = 10000)
public class WardInfo extends CodeModel {

    public static final String MODEL_MODEL = "ts.his.WardInfo";

    @Field.String
    @Field(displayName = "院区代码", invisible = true)
    private String hospCode;

    @UxTableSearch.FieldWidget(@UxWidget())
    @UxForm.FieldWidget(@UxWidget(readonly = "true", hint = "为空时自动生成"))
    @Field.String
    @Field(displayName = "编码", unique = true)
    private String code;

    @UxTableSearch.FieldWidget(@UxWidget())
    @Field.String
    @Field(displayName = "名称", required = true)
    private String name;

}
